<%--<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>ConnectApp v0.2</title>

        <script type="text/javascript" src="js/AC_OETags.min.js"></script>
        <script type="text/javascript" src="js/json2.min.js"></script>
        <script type="text/javascript" src="js/cytoscapeweb.min.js"></script>

        <link href="js/styleBlue.css" rel="stylesheet" type="text/css" />
        <c:url value="/j_spring_security_logout" var="logoutUrl"/>
    </head>
    <script type="text/javascript"> </script>
    <body>

        <div id="basePanel">
            <div id="appLogo">ConnectApp 0.2</div>

            <div class="TopBar">
                <div class="TopMenuItems"><a href="./connectapp.html">New Search</a></div>
                <div class="TopMenuItems">Save Search</div>
                <div class="TopMenuItems">Search Report</div>
                <div class="TopMenuItems">Help</div>
                <div class="TopMenuItems"><a href="${logoutUrl}">Logout</a></div>
            </div>
--%>
<%@include file="inc/pagetop.jsp" %>
<%@include file="inc/topmenu.jsp" %>
            <div class="QueryPanel" id="querypanel" title="Query Panel" lang="en">

                <c:if test="${!empty errorMsg}">
                    <div style="color: red; font-weight: bold"><c:out value="${errorMsg}"/></div>
                </c:if>

                <c:if test="${!empty searchresults}">
                    <form:form method="post" action="connectapp.html">
                        <table>
                          
                            <c:forEach items="${searchresults}" var="searchresult">
                                <tr>
                                    <td><c:out value="${searchresult.entityFname}"/>&nbsp;<c:out value="${searchresult.entityMname}"/>&nbsp;<c:out value="${searchresult.entitySname}"/>
                                        <%--<form:radiobutton path="searchAnEntity" value="${searchresult.entityID}" /></td>--%>
                                        <form:radiobutton path="searchTerm1" value="${searchresult.entityFname} ${searchresult.entitySname}" />


                                    </td>

                                </tr>
                            </c:forEach>


                            <tr>
                                <td colspan="2">
                                    <input name="searchTypeRadioB" type="hidden" value="Person-Entity"/>
                                    <input type="submit" value="Search"/>
                                </td>
                            </tr>

                        </table>
                    </form:form>
                </c:if>

                <c:if test="${empty searchresults}">There was a problem, your search was not successful.  Please try again!</c:if>
            </div>
<!--
            <div id="footer">
                ConnectApp - Project BRAIN (Coventry University & Leeds University) y2011
            </div>

        </div>

    </body>
</html>
-->
<%@include file="inc/footer.jsp" %>
<%@include file="inc/pagebottom.jsp" %>